package com.mi.rof.engineer.entity;

import lombok.Getter;



/**
 * @author zwq
 */
@Getter

public enum RepairOrderEvents {
    // 工单加入消息队列
    AFTER_SUBMIT(200000, "工单已提交"),
    // 上传故障信息
    UPLOAD_FAULT_INFO(200001, "上传故障信息"),
    //检查确认，分支处理
    CHECK_CONFIRM(200002,"检查确认"),
    //撤回工单
    WITHDRAWN(200003, "撤回工单"),
    //预检，分支处理
    PRE_INSPECT(200004, "预检"),
    //物料申请
    MATERIAL_REQUEST(200005, "物料申请"),
    // 物料发放
    MATERIAL_DISTRIBUTION(200006, "物料发放"),
    //检修
    REPAIR(200007, "检修"),
    //复核
    REVIEW(200008, "复核"),
    //支付
    PAY (200009, "支付"),
    //设备归还
    RETURN(200010, "设备归还"),
    // 工单更新
    ORDER_UPDATE(200011, "工单已更新"),;

    private int code;

    private String msg;

    RepairOrderEvents(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
